import Table from "@/components/Table/Table";
import React from "react";
import cls from "@/styles/pages/users/Users.module.scss";
import { useNewEventsColumns } from "@/feature/NewEventsTable/helper";
import { EventI } from "@/models/events";

type Props = {
  data: EventI[];
  isLoading: boolean;
};
export const NewEventsTable = ({ data, isLoading }: Props) => {
  const columns = useNewEventsColumns();

  return (
    <div className={cls.table}>
      <Table
        // @ts-ignore
        data={data}
        // @ts-ignore
        columns={columns}
        isLoading={isLoading}
        onRowClick={() => null}
      />
    </div>
  );
};
